#!/bin/sh -xe

# 注入环境变量
. $CI_SHELL_PATH/scripts/build-env-generate.sh

if [ $CI_COMMIT_BRANCH = "master" ]; then
  export VITE_APPID=202000162
  export VITE_SENTRY=yes
else
  export VITE_APPID=202000297
fi

npm run build
echo "finish build"